import {requests} from "@/api/request";
import type { MarkerData } from "@/class/map/Marker";

/**
 * 上传新数据
 * @param data
 * @returns {*}
 */
export const reqPostMarker =(data:MarkerData)=>requests({
    url:'/marker',
    data,
    method:"post"
})
/**
 * 更新数据
 * @param data
 * @returns {*}
 */
export const reqPutMarker = (data:MarkerData)=>requests({
    url:'/marker',
    data,
    method:"put"
})